﻿using System;
using System.Collections.Specialized;

namespace EOS.Framework.Web.Mvc.Rendering
{
    class MarkupFileControlFoundParameters : EventArgs
    {
        private string name;

        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        private object token;

        public object Token
        {
            get { return token; }
            set { token = value; }
        }

        private PageContext context;

        public PageContext Context
        {
            get { return context;}
            set { context = value;}
        }

        private IXhtmlWriter writer;

        public IXhtmlWriter Writer
        {
            get { return writer;}
            set { writer = value;}
        }

        private string innerXml;

        public string InnerXml
        {
            get { return innerXml; }
            set { innerXml = value; }
        }

        private NameValueCollection parameters;

        public NameValueCollection Parameters
        {
            get { return parameters; }
            set { parameters = value; }
        }

        private string tag;

        public string Tag
        {
            get { return tag; }
            set { tag = value; }
        }


        public MarkupFileControlFoundParameters(object token, string name, string innerXml, string tag, IXhtmlWriter writer, PageContext context)
        {
            parameters = new NameValueCollection();
                        
            this.token = token;
            this.writer = writer;
            this.context = context;
            this.innerXml = innerXml;
            this.name = name;
            this.tag = tag;
        }
    }
}
